package com.lly.songhigh.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

import com.lly.songhigh.R;
import com.lly.songhigh.entity.MVDetials;
import com.lly.songhigh.entity.SingerInformation;

import java.util.List;

import it.sephiroth.android.library.picasso.Picasso;

/**
 * Created by 遇博 on 15/10/29.
 */
public class SingerInformationAdapter extends BaseAdapter{
    private Context context;
    private SingerInformation.DataEntity  dataEntities;

    public SingerInformationAdapter(Context context, SingerInformation.DataEntity  dataEntities) {
        this.context = context;
        this.dataEntities = dataEntities;
    }


    @Override
    public int getCount() {
        return 0 ;
    }

    @Override
    public MVDetials.DataEntity getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }


    @Override
    public View getView(int position, View convertView, ViewGroup parent) {

        ViewHolder holder;

        if (convertView == null) {
            convertView = LayoutInflater.from(context).inflate(R.layout.singer_information_item, null);
            holder = new ViewHolder();
            holder.singer_introduce = (TextView) convertView.findViewById(R.id.singer_introduce);

            convertView.setTag(holder);
        } else {
            holder = (ViewHolder) convertView.getTag();
        }

        SingerInformation.DataEntity dataEntity = dataEntities;

        holder.singer_introduce.setText(dataEntity.getBrief());

        return convertView;
    }

    private class ViewHolder {

        private TextView singer_introduce;

    }
}


